<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all"> 
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
  </head>
<body>
     <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('basic/staff/add')}" method="post">
          
           <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">员工编号&nbsp;<i class="layui-icon">&#xe642;</i></label>
                    <div class="layui-input-inline resc-code" data-resc="">
                        <input class="layui-input" name="staffCode" data-set="staffCode" type="text" lay-verify="required" placeholder="请输入员工编号" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">员工姓名&nbsp;<i class="layui-icon">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="staffName" data-set="staffName" type="text" placeholder="请输入员工姓名" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                	 <label class="layui-form-label">单位&nbsp;<i class="layui-icon"></i></label>
                	 <div class="layui-input-inline">
                	 	<select name="enterpriseId" lay-search="">
                	 		<option></option>
                	 		<option value="0">管委会</option>
                	 		{volist name="enterpriseList" id="item"}
                	 		<option value="{$key}">{$item}</option>
                	 		{/volist}
                	 	</select>
                	 </div>
                </div>
            </div>
            <div class="layui-form-item">
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">部门</label>
            		<div class="layui-input-inline">
            			<select name="departmentId">
            				<option></option>
            				{volist name="departmentList" id="item"}
            				<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
            				{/volist}
            			</select>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">职位</label>
            		<div class="layui-input-inline">
            			<select name="post">
            				<option></option>
            				{volist name="postList" id="item"}
            				<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
            				{/volist}
            			</select>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">入职时间</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="entryDate" id="entryDate" data-set="entryDate"  placeholder="请输入入职时间"/>
            		</div>
            	</div>
            </div>
            <div class="layui-form-item">
             	<div class="layui-inline col-3">
            		<label class="layui-form-label">出生年月</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="bornDate" id="bornDate" data-set="bornDate"  placeholder="请输入出生年月"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">年龄</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="age"  data-set="age"  placeholder="请输入年龄"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">学历</label>
            		<div class="layui-input-inline">
            			<select name="education">
            				<option></option>
            				{volist name="educationList" id="item"}
            				<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
            				{/volist}
            			</select>
            		</div>
            	</div>
            </div>
            <div class="layui-form-item">
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">电话&nbsp;<i class="layui-icon">&#xe642;</i></label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="tel" data-set="tel"  placeholder="请输入电话号码"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">手机&nbsp;<i class="layui-icon">&#xe642;</i></label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="mobile" data-set="mobile"  placeholder="请输入手机号码"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">邮箱</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="email" data-set="email"  placeholder="请输入邮箱地址"/>
            		</div>
            	</div>
            </div>
            <div class="layui-form-item col-3">
            	<div class="layui-inline">
            		<label class="layui-form-label">现居住地</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="residence" data-set="residence"  placeholder="请输入现居住地"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">籍贯</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="native" data-set="native"  placeholder="请输入籍贯"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">户口所在地</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="nativeLocation" data-set="nnativeLocationative"  placeholder="请输入户口所在地"/>
            		</div>
            	</div>
            </div>
            <div class="layui-form-item">
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">身份证号</label>
            		<div class="layui-input-inline">
            			<input class="layui-input" type="text" name="lisenceId" data-set="lisenceId"  placeholder="请输入身份证号"/>
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">性别</label>
            		<div class="layui-input-inline">
            			 <input type="radio" name="sex" value="1" title="男" checked="">
      					 <input type="radio" name="sex" value="2" title="女">
            		</div>
            	</div>
            	<div class="layui-inline col-3">
            		<label class="layui-form-label">是否在职</label>
            		<div class="layui-input-inline">
            			<input type="checkbox" checked="" name="isValid" lay-skin="switch"  lay-text="是|否">
            		</div>
            	</div>
            </div>

			<div class="layui-form-item">
				<div class="layui-inline col-3">
					<label class="layui-form-label">安全资格证</label>
					<div class="layui-input-inline">
						<input type="checkbox" checked="" name="securityCertificate" lay-skin="switch"  lay-text="是|否">
					</div>
				</div>
				<div class="layui-inline col-3">
					<label class="layui-form-label">安全培训</label>
					<div class="layui-input-inline">
						<input type="checkbox" checked="" name="safetyTraining" lay-skin="switch"  lay-text="是|否">
					</div>
				</div>
			</div>
            <div class="layui-form-item"> 
	            <label class="layui-form-label">相片</label>
	  			<div class="layui-input-block">
	  				<div class="layui-upload">
	  					 <button type="button" class="layui-btn btn-upload" id="iconImg" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-plus"></i></button>
	  					 <div class="layui-upload-list">
					    	<input class="layui-hide" type="text" name="iconImgPath">
	  					 </div>
	  				</div>
	  			</div>
            </div>
             <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="remark" data-set="remark" placeholder="请输入备注"></textarea>
                </div>
            </div>
          	<div class="layui-form-item">
          		 <div class="layui-input-block">
                      <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                       <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                 </div>  
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/basic/staff.js"></script>
       

</body>
</html>           
